package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsMarkBloggerDayExtMapper;
import com.gugee.ins.common.dal.service.mark.InsMarkBloggerDayDao;
import com.gugee.ins.common.model.mysql.mark.InsMarkBloggerDay;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * insBlogger dao
 * @author Huangxin
 */
@Slf4j
@Service
public class InsMarkBloggerDayDaoImpl extends ServiceImpl<InsMarkBloggerDayExtMapper, InsMarkBloggerDay> implements InsMarkBloggerDayDao {

    /**
     * 根据uid 进行查找打点记录并插入打点表
     * @param uids
     * @param today
     * @param yesterday
     * @param lastMonthDay
     * @param lastWeekDay
     */
    @Override
    public void insertMarkBloggerDayByUid(List<Long> uids,int today,int yesterday,int lastMonthDay,int lastWeekDay) {
        long now = System.currentTimeMillis() / 1000;
        baseMapper.insertMarkBloggerDayByUid(uids,today,yesterday,lastMonthDay,lastWeekDay,now);
    }
}
